﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VX.DBTransfer.Model
{
    public class DBConfigModel
    {
        public string IP { get; set; }
        public string DBName { get; set; }
        public string Login { get; set; }
        public string Password { get; set; }
        public string Schema { get; set; }
        public string ConnString
        {
            get
            {
                return string.Format("Data Source={0};Initial Catalog={1};User ID={2};Password={3};MultipleActiveResultSets=True;Packet Size=4096;Pooling=true;Max Pool Size=100;Min Pool Size=1",
                                        IP, DBName, Login, Password);
            }
        }
        public DBConfigModel()
        {
            Schema = "dbo";
        }
    }
}
